package com.fbs.wowo.finance.web;

import com.fbs.wowo.base.BaseController;
import com.fbs.wowo.base.Response;
import com.fbs.wowo.finance.service.BillService;
import com.fbs.wowo.finance.vo.BillQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/bill")
public class BillController extends BaseController {

    @GetMapping("/list")
    @ResponseBody
    public Response trade(@ModelAttribute BillQuery billQuery) {
        return success(billService.bills(billQuery));
    }

    @Autowired
    private BillService billService;
}
